package org.xiaojinlong.reading;

import java.io.StringReader;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by jinlong on 2015/3/4.
 */
public class Regex {
    public static void main(String[] args) {
        Pattern p = Pattern.compile("^\\p{Upper}\\p{Alnum}+");
        System.out.println(p.matcher("Abcd").matches());

//        System.out1.println(m.matches());
//        Arrays.asList("I belive    I can fly".split("I?\\W+")).forEach(System.out1::println);
    }
}
